package com.powerunion.datacollection.common;

public class Constants {

	public final static String INTOMETHOD = "开始执行<---------------->";
	public final static String INIT = "初始化";
	public final static String SAVE = "保存";
	public final static String SEARCH = "查找";
	public final static String UPDATE = "修改";
	public final static String DELETE = "删除";
	public final static String SUCCESS = "操作成功！";
	public final static String FAIL = "操作失败！";
	public final static String OVER = "结束!";
	public final static int ISNULL = 0;
	public final static int ISFAIL = -1;
	public final static int ISSUCCESS = 1;
	public final static int ISEXIST = -2;
	public final static int ISHASChILREN=2;
	public static final String DEFAULT_METHOD = "list";

	//审批步骤节点类型
	public static final int APPROVE_STEP_TYPE= 1;
	//采集步骤节点类型
	public static final int COLLECTION_STEP_TYPE= 2;
	// 开始步骤节点类型
	public static final int START_STEP_TYPE= 0;
	
    public static final int USER = 0;//用户
    public static final int DEPARTMENT = 1;//部门
    public static final int WORKGROUP = 2;//工作组

    //采集步骤环节类型
    public static final int SUBMISSION_TYPE_SINGLE= 1;
    public static final int SUBMISSION_TYPE_MULTI= 2;
    //审批步骤环节类型
    public static final int APPROVE_TYPE_SINGLE= 2;
    public static final int APPROVE_TYPE_MULTI= 3;
    //任务状态
    public static final int TASK_IN_ROUGH =1;
    public static final int TASK_SUSPEND=2;
    public static final int TASK_COMPLETE=3;
    //流程类型
    public static final int PROCESS=3;//流程定义
    public static final int PROINSTANCE = 30;//流程实例
    
    //报送明细状态
    public static final int SUBMISSION_WAIT=0;//等待处理
    public static final int SUBMISSION_NOTSUBMIT=1;//已填写数据但未上报提交
    public static final int SUBMISSION_SYNCHRO_WAIT=2;//表示处于“与汇聚”同步状态，既正在等待其他人的任务结束 
    public static final int SUBMISSION_OVERTIME=3;//任务超时未完成
    public static final int SUBMISSION_WAIT4Approve=4;//已完成采集任务等待审批中
    public static final int SUBMISSION_COMPLETE=5;//任务完成
    public static final int SUBMISSION_DISACCORD=7;//审批未通过
    public static final int SUBMISSION_HIDE=8;//报送任务被隐藏
    
    //审批明细状态
    public static final int APPROVE_WAIT=0;//等待处理
    public static final int APPROVE=1;//表示已填写审批意见但未上报提交
    public static final int APPROVE_SYNCHRO_WAIT=2;//表示处于“与汇聚”同步状态，既正在等待其他人的任务结束 
    public static final int APPROVE_OVERTIME=3;//任务超时未完成
    public static final int APPROVE_WAIT4Approve=4;//表示已完成审批任务等待上层审批中
    public static final int APPROVE_COMPLETE=5;//任务完成
    public static final int APPROVE_DISACCORD=7;//审批未通过
    public static final int APPROVE_HIDE=8;//审批任务隐藏
    public static final int APPROVE_WAIT_UPDATE=9;//等待返回修改的数据
    //审批意见类型
    public static final int APPROVE_MIND_TYPE_AGRREE=1;//同意
    public static final int APPROVE_MIND_TYPE_DISACCORD=2;//不同意
    public static final int APPROVE_MIND_TYPE_BACKTRACK=3;//返回修改
    
    //任务类型
    public static final int TASK_TYPE_SUBMISSIONWORK=1;//采集任务
    public static final int TASK_TYPE_APPROVEWORK=2;//审批任务
    public static final int TASK_TYPE_ORIGINATEWORK=3;//发起任务
    //步骤状态
    public static final int ACTIVITY_UNSUB=0;//未提交
    public static final int ACTIVITY_WAIT=1;//等待审批
    public static final int ACTIVITY_COMPLETE=2;//已完成
    public static final int ACTIVITY_JUMP_WAIT=3;//略过 采集人选择跳过直接上报到该审批步骤的上一个审批步骤
    public static final int ACTIVITY_JUMP_COMPLETE=4;
    public static final int ACTIVITY_JUMP_HIDE=5;//被略过的审批步骤 
    
    //汇总数据请求类型
    public static final int DATACOLLECTVIEW_REQUEST_TYPE_SUBMIDATA=1;//请求的是当前上报的任务数据
    public static final int DATACOLLECTVIEW_REQUEST_TYPE_COLLECT=2;//请求的是汇总所有上报数据

    public static final int TASK_PERIODS_TYPE_DAYLY=1;
    public static final int TASK_PERIODS_TYPE_WEEKLY=2;
    public static final int TASK_PERIODS_TYPE_MONTHLY=3;
    public static final int TASK_PERIODS_TYPE_NOTREPEATE=0;
    
    //表单请求类型
    public static final int FORM_DATA_TYPE_DESIGN=0;//请求初始化的表单
    public static final int FORM_DATA_TYPE_INIT=1;//请求初始化的表单
    public static final int FORM_DATA_TYPE_SAVE=2;//保存表单
    public static final int FORM_DATA_TYPE_READ=3;//读取
}
